package cl.gob.minvu.catastromobile;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ReviewActivity extends AbstractActivity {
	
	private String[] listFichasArr = { "Ficha 1\nPepito Los Palotes", "Ficha 2\nJosé Algo",
			"Ficha 3\nPedro López", "Ficha 4\nArnoldo Schwarzenegger" };
	private ListView pendientesListView;
	private ArrayAdapter<?> arrayAdapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_review);
		
		this.pendientesListView = (ListView) super.findViewById(R.id.list_review);
		this.arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, this.listFichasArr);
		this.pendientesListView.setAdapter(this.arrayAdapter);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.review, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean validateFrm() {
		// TODO Auto-generated method stub
		return false;
	}
}
